package com.yike.user.param;

import com.yike.common.api.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 隐私协议表
 *
 * @author Sakura
 * @since 2024-09-12
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "隐私协议参数")
public class PrivacyAgreementParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id，修改必传", groups = {Update.class})
    @ApiModelProperty("自增ID")
    private Long id;

    @ApiModelProperty("类型")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("协议链接")
    @NotBlank(message = "协议链接不能为空")
    private String url;

    @ApiModelProperty("启用状态：1启用 0未启用")
    private Boolean enable;

}
